home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Presentations / Presentations ’96 / Papers ’96 / Standard Template Library / Demo / DemoSTL.r next >
Encoding:
Text File  |  1996-06-21  |  574 b   |  41 lines  |  [TEXT/SPM ]

  1.  
  2. #define SystemSevenOrLater 1
  3. #include "systypes.r"
  4. #include "types.r"
  5.  
  6. #define rUserAlert 129
  7.  
  8. /* this ALRT and DITL are used as an error screen */
  9. resource 'ALRT' (rUserAlert, purgeable) {
  10.     {40, 20, 150, 260},
  11.     rUserAlert,
  12.     {
  13.         OK, visible, silent,
  14.         OK, visible, silent,
  15.         OK, visible, silent,
  16.         OK, visible, silent
  17.     },
  18.     alertPositionMainScreen
  19. };
  20.  
  21.  
  22. resource 'DITL' (rUserAlert, purgeable) {
  23.     {
  24.         {80, 150, 100, 230},
  25.         Button {
  26.             enabled,
  27.             "OK"
  28.         },
  29.         {10, 60, 60, 230},
  30.         StaticText {
  31.             disabled,
  32.             "^0"
  33.         },
  34.         {8, 8, 40, 40},
  35.         Icon {
  36.             disabled,
  37.             2
  38.         }
  39.     }
  40. };
  41.